### Project 12 A Flying Balloon **1.Description** When we throw a balloon to the height, it will rise slowly and turn around in the sky with the wind then slowly fall. When the balloon falls above our heads, touch it with a finger, then it will fly into the sky again. In this project, there is a vibration tilt module, which can detect vibration and tilt. By using its characteristics, we can achieve the above interactive effect. Task analysis | Sensor | Vibration Tilt Module | | ---------- | ------------------------------------------------------------ | | Role | Cat | | Background | Bench With View | | Result | The balloon flies when the sensor tilts up. The balloon falls when the sensor tilts down. | **2.Vibration Tilt Module Introduction** ![](media/image-20251208140338370.png) The keyestudio vibration tilt module can be used to detect vibration and tilt. The SW-200D vibration switch element adopted on this module is a ball type tilt induction unidirectional trigger switch, one end of which is gold-plated(trigger end), the other is silver-plated (conductive end). When the module is in the horizontal position or inclined to the conductive end (silver-plated), the switch element is in OFF state and the signal end outputs a high level. When the module is tilted to the trigger terminal (gold-plated), the switch element is ON state, and the signal terminal outputs a low level. When the angle of the conductive end (silver-plated) is lower than 10 ° horizontally and the module is shaken by external force, so the trigger end (gold-plated) will be in a short-time ON state, which makes the module detect vibration. Specifications: - Working voltage: DC 3.3-5V - Working current:60mA - Maximum power:300mW - Working temperature:-25℃--65℃ - Dimension: 30mm*27mm*5mm - Weight:2.0g - Environmental protection attributes: ROHS **3.Components Needed** | Control Board * 1 | USB Cable*1 | Connection Wires | Vibration Tilt Module * 1 | | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | | ![](media/image-20251208140547350.png) | ![](media/image-20251208140554400.png) | ![](media/image-20251208140602124.png) | ![](media/image-20251208140609407.png) | **4.Connection Diagram** ![](media/image-20251208141447996.png) **5.Test Program** 1.Open“KidsBlock”software to create a new project. 2.Delete the beetle role. 3.Select “balloon1”and “Cat”:click the background library icon![](media/image-20251208141616477.png)in the lower right corner to select “balloon1”and “Cat”. ![](media/image-20251208141642275.png) ![](media/image-20251208141651953.png) 4.Select “Bench With View”, as shown below: ![](media/image-20251208142033805.png) 5.Select “balloon1”and “Cat”, as shown below: ![](media/image-20251208142054025.png) 6.Flow Chart ![](media/image-20251208142114973.png) 7.Build the program Select “balloon1”and build the program, as shown below: ![](media/image-20251208142428632.png) **6.Test Result** Connect the wirings and the device then select the port, then click![](media/image-20251208142506959.png).The balloon flies when the sensor tilts up. The balloon falls when the sensor tilts down. ![](media/image-20251208142557807.png) ![](media/image-20251208142604046.png)